<?php
include dirname(dirname(dirname(__FILE__))).'/include/user-verify.php';
include dirname(dirname(__FILE__)).'/user-rule-manage/functions.php';
include dirname(dirname(__FILE__)).'/user-manage/functions.php';
$user_rule = getUserRule();
$author = getUserById($user_rule['author_id']);
?>
<html>
	<head>
		<?php include dirname(dirname(dirname(__FILE__))).'/include/common-header.php'; ?>
		<link rel="stylesheet" type="text/css" href="../css/style.css">
	</head>
	<body>
		<div class="col-md-12">
			<div>
				<h3>员工守则</h3>
			</div>
			<div>
				<span>编辑者:<b style="margin-right:20px;"><?php echo $author['username']; ?></b> 更新时间:<b><?php echo $user_rule['update_time']; ?></b></span>
				<div class="main-content">
					<p>
					    <?php 
					    	echo $user_rule['content'];
					    ?>
					</p>
				</div>
			</div>
		</div>
	</body>
</html>